package com.pig4cloud.pigx.contract.mapstruct;

import com.pig4cloud.pigx.contract.entity.RippleContractSymbolHierarchy;
import com.pig4cloud.pigx.contract.mongo.entity.ContractSymbolHierarchyMongo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * ContractSymbolHierarchyStruct
 *
 * @since 2022/8/12 16:32
 */
@Mapper
public interface ContractSymbolHierarchyStruct {
	ContractSymbolHierarchyStruct INSTANCE = Mappers.getMapper(ContractSymbolHierarchyStruct.class);

	/**
	 * list转换为mongoList
	 *
	 * @param list 实体类集合
	 * @return {@link List< ContractSymbolHierarchyMongo>}
	 * @since 2022/7/14 14:21
	 */
	List<ContractSymbolHierarchyMongo> list2Mongo(List<RippleContractSymbolHierarchy> list);
}
